package com.creative.xcx.service;

import com.creative.xcx.domain.XcxNotice;
import com.creative.core.page.TableDataInfo;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @description 小程序的公告栏
 * @author ling
 * @date 2025-02-26
 */
@Transactional(rollbackFor = Exception.class)
public interface XcxNoticeService {

    /**
     * 新增
     */
    public Integer insert(XcxNotice xcxNotice);

    /**
     * 删除
     */
    public Integer delete(String nId);

    /**
     * 批量删除
     */

    public Integer deleteBatch(String[]   ids);


    /**
     * 更新
     */
    public Integer update(XcxNotice xcxNotice);

    /**
     * 根据主键 id 查询
     */
    public XcxNotice selectById(String nId);
    /**
     * 分页查询
     */
    public  TableDataInfo selectXcxNoticeList(XcxNotice xcxNotice);

    /**
     * 查询小程序数据
     *
     * @param xcxNotice xcx notice
     * @return {@link List }<{@link XcxNotice }>
     * @author ling
     * @date 2025/03/17
     */
    public List<XcxNotice> selectMpXcxNoticeList(XcxNotice xcxNotice);

    /**
     * 批量刪除
     * @author ling
     * @date 2025/02/26
     **/
    public List<XcxNotice> exportBatch(String[]   ids);
}
